﻿@model Web.ViewModels.NewsShortContentModel

<div id="news_shortContent_container" class="@(String.IsNullOrEmpty(Model.ShortContent) ? "ownerOnly" : "")">
	<span class="header">Краткое содержание:</span>	
	<div class="editShortContentText_field" id="shortContentContainer">
        <span class="editShortContentText_field editShortContentText_field0"> 
            @Model.ShortContent
        </span>
        <span class="editShortContentText_dummy0" @if (!String.IsNullOrEmpty(Model.ShortContent))
                                        {
                                                @:style="display: none;"
                                        }>
            Щёлкните сюда, чтобы заполнить краткое содержание новости
        </span>
        <br/>
        <div style="height:20px;">
		<a href="#" class="editButton_edit editButton" rel="editShortContentText">Редактировать</a>
        </div>
    </div>
	@using (Html.BeginForm("ChangeShortContent", "News", FormMethod.Post, new { @class = "ajaxForm_noReload", @name = "editShortContentText_form" }))
 {
		<input type="hidden" name="id" value="@(Model.id)"/>
		<div class="editionInput editShortContentText_input">
			@Html.TextAreaFor(x => x.ShortContent, new
									{
										@id = "editShortContentText_input",
                                        @class = "editShortContentText_input0",
										@placeholder = "8 сентября в 12:00 в парке Энгельса состоится субботник"
									})
			@Html.ValidationMessageFor(x => x.ShortContent)
		</div>

		<input type="submit" class="editButton_submit editionInput editShortContentText_input" value="Сохранить" name="editShortContentText" />
		<input type="reset" class="editButton_cancel editionInput editShortContentText_input" value="Отмена" name="editShortContentText" />
 }
</div>

